package com.drg.center.service;

import cn.hutool.core.lang.tree.Tree;
import com.drg.center.entity.param.SysDeptAddDTO;
import com.drg.center.entity.param.SysDeptEditDTO;
import com.drg.center.entity.result.SysDeptVO;
import com.guaike.core.entity.result.Result;

import java.util.List;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/15
 */
public interface SysDeptService {

    /**
     * 部门树
     * @return
     */
    Result<List<Tree<String>>> findTree(Boolean onlyEnable);

    /**
     * 详情
     * @param departCode
     * @return
     */
    Result<SysDeptVO> detail(String departCode);
}
